// eslint-disable-next-line no-unused-vars
import {observable, action, computed, autorun} from 'mobx'


class Person {
  @observable name = "Jack"
  @observable age = 20
  @observable address = {
    province: "Shanghai",
    district: "Pudong",
    time: [{
      start: "0",
      end: "24"
    }]
  }
  @observable map = new Map([['id', '001'], ['status', false]])
}

const person = new Person()

//这个相当于组件内部触发更新
autorun(() => console.log(`name:${person.name},age:${person.map},`)
)

person.map.set("id", '002')

export default person
